// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

.WorkspaceSwitcherWrapper {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    position: relative;
    padding: 0 16px;
    margin-bottom: 16px;
    font-weight: 600;

    > div:nth-child(2) {
        position: absolute;
        width: 280px;
        top: calc(100% + 8px);
        z-index: 10;
        padding: 12px 16px 0;
        background: rgb(var(--center-channel-bg-rgb));
        border-radius: 4px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    .add-workspace-icon {
        display: flex;

        i {
            color: rgb(var(--sidebar-text-rgb));
            align-self: center;
        }

        &:hover {
            cursor: pointer;
        }
    }
}


.WorkspaceSwitcher {
    display: flex;
    flex-direction: row;
    background: var(--global-header-background);
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    white-space: nowrap;
    flex: 1;
    max-width: 175px;

    span {
        max-width: 90%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .icon-chevron-down {
        margin-left: auto;
        font-size: 18px;
    }
}
